import { createRouter, createWebHistory } from 'vue-router'
import home from '@/views/home/home.vue'
import zc from '@/views/zc/index.vue'
import sp from '@/views/sp/index.vue'
import xp from '@/views/xp/index.vue'
import dd from '@/views/dd/index.vue'
import dl from '@/views/dl/index.vue'
import Cla from '@/views/home/cla.vue'
import Index from '@/views/home/index.vue'
import Shop from '@/views/home/shop.vue'
import My from '@/views/home/my.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      component: home, children: [
        {
          path: 'cla',
          component: Cla,
        },
        {
          path: 'index',
          component: Index,
        },
        {
          path: 'shop',
          component: Shop,
        },
        {
          path: 'my',
          component: My,
        },
      ]
    },
    {
      path: '/zc',
      component: zc,
    },
    {
      path: '/dl',
      component: dl,
    },
    {
      path: '/sp',
      component: sp,
    },
    {
      path: '/xp',
      component: xp,
    },
    {
      path: '/dd',
      component: dd,
    },
  ],
})

export default router
